using UnityEngine;
using System.Collections;

public class Singleton : MonoBehaviour
{
	public static Singleton Instance = null;
	
	void Awake () 
	{
		if(Instance == null)
		{
			Instance = this;
			DontDestroyOnLoad (transform.gameObject);
		}
		else
			Destroy(gameObject);
	}

	// Use this for initialization
	void Start ()
	{

	}

	// Update is called once per frame
	void Update ()
	{

	}
}

